package cn.newhopedairy.member.infrastructure.db.po;

import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDate;
import cn.newhopedairy.common.po.SuperPo;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 会员卡
 *
 * @author Neo.Li
 * @since 2021-01-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("member_card")
@ApiModel(value="MemberCardPo对象", description="会员卡")
public class MemberCardPo extends SuperPo {


    @ApiModelProperty(value = "会员id")
    @TableField("member_id")
    private Long memberId;

    @ApiModelProperty(value = "卡号")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "状态，1：启用，0：禁用")
    @TableField("status")
    private Boolean status;

    @ApiModelProperty(value = "开始有效期")
    @TableField("validity_start")
    private LocalDate validityStart;

    @ApiModelProperty(value = "结束有效期")
    @TableField("validity_end")
    private LocalDate validityEnd;


}
